package com.cai.blog.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cai.blog.dao.pojo.Tag;

import java.util.List;

public interface TagMapper  extends BaseMapper<Tag> {
    /**
     * 根据文章查询标签列表
     * @param articleId
     * @return
     */

    List<Tag> findTagbyArticleId(Long articleId);

    List<Long> finfHostTagsId(int limit);

    List<Tag> findTagsById(List<Long> tagIds);
}
